package cn.wolfcode.mapper;

import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.NoticeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NoticeMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    void updateByPrimaryKey(Notice record);

    List<Notice> queryAll(@Param("qo") NoticeQueryObject qo, @Param("id") Long id);

    List<Notice> queryRelease(@Param("qo") NoticeQueryObject qo, @Param("id") Long id);

    void issue(Long id);

    void notIssue(Long id);

    List<Long> selectByEN(Long userId);


    List<Long> selectRead(Long userId);

    void updateRead(@Param("id") Long id, @Param("nId") Long nId);

    void insertEN(@Param("eId") Long eId, @Param("nid") Long nid);
}